package org.wyz;

public class LambdaThread {

    public void run() {
        MyCounter counter = new MyCounter(0);


        for (int i = 0; i < 100; i++) {
            new Thread(counter::increase).start();
        }

//        counter.increase();


        System.out.println(counter.get());

    }

    public static void main(String[] args) {
        new LambdaThread().run();
    }

}
